//
//  WaterflowLayout.h
//  蘑菇街瀑布流
//
//  Created by app15 on 15/7/14.
//  Copyright (c) 2015年 cn.scjy. All rights reserved.
//

#import <UIKit/UIKit.h>
@class  WaterflowLayout;

//@protocol WaterflowLayoutDelegate <NSObject>
//
//-(CGFloat)waterflowLayoutheightForWidth:(CGFloat)width atIndexPath:(NSIndexPath*)indexPath;
//
//@end
@interface WaterflowLayout : UICollectionViewLayout
@property(nonatomic,assign)UIEdgeInsets sectioninset;
//列间距
@property(nonatomic,assign)CGFloat columnMargin;
//行间距
@property(nonatomic,assign) CGFloat rowMargin;
//列数
@property(nonatomic,assign)int columnCount;


-(NSMutableArray*)attrsArray:(NSArray*)array;
//@property(nonatomic,weak) id<WaterflowLayoutDelegate> delegate;
@end
